package com.example.demo.person.pojo;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;

/**
 * @author zhangqiang
 * @date 2021/5/29 15:42
 */
@Data
@TableName(value = "person")
public class Person {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 工号 (不超过8位)
     */
    @TableField(value = "job_no")
    private String jobNo;

    /**
     * 姓名 (不超过10个字)
     */
    @TableField(value = "name")
    private String name;

    /**
     * 年龄 (18-60)
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 出生年月 (格式yyyy-MM-dd)
     */
    @TableField(value = "birthday")
    private Date birthday;

    /**
     * 国籍
     */
    @TableField(value = "nationality")
    private String nationality;

    /**
     * 婚姻状况 (0-未婚 1-已婚)
     */
    @TableField(value = "marital_status")
    private Integer maritalStatus;

    /**
     * 级别 (Primary-初级 Middle-中级 High-高级)
     */
    @TableField(value = "level")
    private String level;

    /**
     * 自我介绍
     */
    @TableField(value = "self_introduction")
    private String selfIntroduction;

    @TableField(value = "create_user_id", fill = FieldFill.INSERT)
    private Long createUserId;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "update_user_id", fill = FieldFill.INSERT_UPDATE)
    private Long updateUserId;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private Long tenantId;

    //----------------------------------------------not table fields---------------------------------------------
    @TableField(exist = false)
    private String maritalStatusName;
}
